package com.asen.commons.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 分录标识
 *
 * @author Gary
 * @version 1.0
 * @date 2021-04-29
 */
@Target({FIELD})
@Retention(RUNTIME)
public @interface FieldEntry {

    /**
     * 父对象关联键值属性，默认为parentId
     *
     * @return
     */
    String pidKey() default "parentId";

}
